import React, {Component} from 'react'
import Search from "./search";
import Main from "./main";

export default class App extends Component {

    state = {
        searchName: ''
    }


    setSearchName = (value) => {
        this.setState({searchName: value})
    }


    render() {
        return (
            <div className="container">
                <Search setSearchName={this.setSearchName}/>
                <Main searchName={this.state.searchName}/>
            </div>
        )
    }
}
